const express = require('express');
const connection = require('../uilit/mysql')

const myRouter=express.Router();
myRouter.get('/login',function(req,res){
    console.log(req.query.name)
    // const sql=`INSERT INTO area VALUES(NULL,"${req.query.name}",5);`
    // connection.query(sql,function(err,data){
    //     if(err){
    //         console.log(err);
    //     }else{
    //         if(data.length){
    //             res.send({code:'200',msg:'添加成功'});
    //         }else{
    //             res.send({code:'500',msg:'登录失败'});
    //         }
    //     }
    // })
});
module.exports=myRouter;